package com.xbongbong.pro.enums.menu.enums;

import com.xbongbong.i18n.util.I18nMessageUtil;
import com.xbongbong.pro.enums.AccessLinkEnum;
import com.xbongbong.saas.enums.XbbRefTypeEnum;
import lombok.Getter;

/**
 * @author 吴峰
 * @version v1.0
 * @date 2019/5/5 18:46
 * @since v1.0
 */
@Getter
public enum HomeBottomMenuEnum {

    /**
     *
     */
    HOME("home", null, "enum.homeBottomMenu.name.home", AccessLinkEnum.MOBILE_HOME),
    /**
     * 专注模式特有
     */
    FOCUS_HOME("home", null, "enum.homeBottomMenu.name.home", AccessLinkEnum.FOCUS_MOBILE_HOME),

    BI("bi", null, "enum.homeBottomMenu.name.bi", AccessLinkEnum.BI),

    TASK(XbbRefTypeEnum.COMMUNICATE_PLAN.getAlias(), XbbRefTypeEnum.COMMUNICATE_PLAN.getCode(), "enum.homeBottomMenu.name.task", AccessLinkEnum.MOBILE_TASK),

    PROCESS("process", null, "enum.homeBottomMenu.name.process", AccessLinkEnum.MOBILE_PROCESS),

    MESSAGE("message",  null, "enum.homeBottomMenu.name.message", AccessLinkEnum.MOBILE_MESSAGE),


    MY("my", null, "enum.homeBottomMenu.name.my", AccessLinkEnum.MOBILE_MY),;

    private String type;

    private Integer businessType;

    private String name;

    private AccessLinkEnum accessLinkEnum;

    HomeBottomMenuEnum(String type, Integer businessType, String name, AccessLinkEnum accessLinkEnum) {
        this.type = type;
        this.businessType = businessType;
        this.name = name;
        this.accessLinkEnum = accessLinkEnum;
    }

    public String getName() {
        return I18nMessageUtil.getMessage(name);
    }
}
